package net.hn.hnms.biz.plan.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 带值班信息
 *
 * @author ly
 * @since 1.0.0 2022-08-16
 */
@Data
@ApiModel("值班信息")
public class DispatchKeepWatchDutyReq extends BaseReq {

	/**
	* 主键ID
	*/
	@ApiModelProperty(value = "id")
	private String keepWatchId;

	/**
	* 煤矿编码
	*/
	@ApiModelProperty(value = "煤矿编码")
	private String mineCode;

	/**
	* 日期
	*/
	@NotNull(message = "请选择日期")
//	@JsonFormat(
//			pattern = "yyyy-MM-dd",
//            timezone = "GMT+8"
//	)
	@ApiModelProperty(value = "日期")
	@JsonFormat(
			pattern = "yyyy-MM-dd"
	)
	@DateTimeFormat( pattern = "yyyy-MM-dd")
	private Date keepWatchDate;

	/**
	 * 值班人员ID 多个ID用逗号分割
	 */
	@ApiModelProperty(value = "值班人员ID")
//	@NotBlank(message = "请选择值班人员")
	private String dutyPersonIds;

}